package com.xbongbong.pro.statistic.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 资金流转名称枚举
 *
 * @author 徐俊杰
 * @version v1.0
 * @date 2020/3/13 13:39
 * @since v1.0
 */
@Getter
public enum FundFlowEnum {
    /**
     *
     */
    PAYMENT("enum.fundFlow.name.payment", "payment"),
    PAY("enum.fundFlow.name.pay", "pay"),
    FLOW("enum.fundFlow.name.flow", "flow");

    /**
     * 名称
     */
    private final String name;
    /**
     * 业务类型
     */
    private final String type;

    FundFlowEnum(String name, String type) {
        this.name = name;
        this.type = type;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
